<?php 
namespace app\admin\model;
use think\Model;
class Member extends Model{
	public function show()
	{
		return $this->order('id','desc');
	}
	public function cou()
	{
		return $this->select()->count();
	}
	public function addm($arr)
	{
		return $this->insertGetId($arr);
	}
	public function selm($id)
	{
		return $this->where('id','=',$id)->select();
	}
	public function updm($id,$arr)
	{
		return $this->where('id','=',$id)->update($arr);
	}
	public function delm($id)
	{
		return $this->where('id','in',$id)->delete();
	}
}